<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css">

<?php

$theme_set = "";
if (isset($_POST['theme_set'])){
    $theme_set = $_POST['theme_set'];
}

    if($theme_set){
  
        
        update_option("beian",$_POST["beian"]);
        update_option("static_api_one",stripslashes($_POST["static_api_one"]));
        update_option("static_api_two",stripslashes($_POST["static_api_two"]));
    }

?>
<div class="container-fluid  mt-3">

    <form action="" method="post" enctype="multipart/form-data">
        <h2>主题设置</h2>
        <hr/>
 
        <div class="m-3">
            <label class="form-label">备案号:</label>
            <input type="text" class="form-control"  name="beian" value="<?php echo get_option("beian"); ?>">
        </div>   

        <div class="m-3">
            <label class="form-label">侧边栏模块接口一:</label>
            <textarea class="form-control"  rows="8" name="static_api_one"><?php echo get_option("static_api_one"); ?></textarea>
        </div>

         <div class="m-3">
            <label class="form-label">侧边栏模块接口二:</label>
            <textarea class="form-control"  rows="8" name="static_api_two"><?php echo get_option("static_api_two"); ?></textarea>
        </div>




          <input type="submit" name="theme_set" value="提交" class="btn btn-primary">
    </form>
    
</div>


